import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue';
import router from './router'
import axios from './axios/index'
import has from './directives/has.js'

import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';

import moment from 'moment'

Vue.directive('has', has)
Vue.use(ElementUI);
Vue.use(ViewUI)

Vue.config.productionTip = false

Vue.prototype.$request = axios
Vue.prototype.SimpleDateFormat = moment

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')